# GENERATED BY: test/embedding/embedding_test.dart

$ tool/test-bin/pub_command_runner.dart pub --verbose get
MSG : Resolving dependencies...
MSG : Downloading packages...
MSG : + foo 1.0.0
MSG : Changed 1 dependency!
MSG : Logs written to $SANDBOX/cache/log/pub_log.txt.
[E] FINE: Pub 3.1.2+3
[E] SLVR: fact: myapp is 0.0.0
[E] SLVR: derived: myapp
[E] SLVR: fact: myapp depends on foo any
[E] SLVR:   selecting myapp
[E] SLVR:   derived: foo any
[E] IO  : Get versions from http://localhost:$PORT/api/packages/foo.
[E] IO  : HTTP GET http://localhost:$PORT/api/packages/foo
[E]    | Accept: application/vnd.pub.v2+json
[E]    | X-Pub-OS: $OS
[E]    | X-Pub-Command: get
[E]    | X-Pub-Session-ID: $ID
[E]    | X-Pub-Environment: test-environment
[E]    | X-Pub-Reason: direct
[E]    | user-agent: Dart pub 3.1.2+3
[E] IO  : HTTP response 200 OK for GET http://localhost:$PORT/api/packages/foo
[E]    | took: $TIME
[E]    | x-powered-by: Dart with package:shelf
[E]    | date: $TIME
[E]    | content-length: 312
[E]    | x-frame-options: SAMEORIGIN
[E]    | content-type: application/vnd.pub.v2+json
[E]    | x-xss-protection: 1; mode=block
[E]    | x-content-type-options: nosniff
[E] IO  : Writing $N characters to text file $SANDBOX/cache/hosted/localhost%58$PORT/.cache/foo-versions.json.
[E] FINE: Contents:
[E]    | {"name":"foo","uploaders":["nweiz@google.com"],"versions":[{"pubspec":{"name":"foo","version":"1.0.0","environment":{"sdk":"^3.0.0"}},"version":"1.0.0","archive_url":"http://localhost:$PORT/packages/foo/versions/1.0.0.tar.gz","archive_sha256":"$SHA256"}],"_fetchedAt": "$TIME"}
[E] SLVR:   selecting foo 1.0.0
[E] SLVR: Version solving took: $TIME
[E]    | Tried 1 solutions.
[E] FINE: Resolving dependencies finished ($TIME)
[E] IO  : Get package from http://localhost:$PORT/packages/foo/versions/1.0.0.tar.gz.
[E] FINE: Downloading foo 1.0.0...
[E] IO  : Created temp directory $DIR
[E] IO  : HTTP GET http://localhost:$PORT/packages/foo/versions/1.0.0.tar.gz
[E]    | X-Pub-OS: $OS
[E]    | X-Pub-Command: get
[E]    | X-Pub-Session-ID: $ID
[E]    | X-Pub-Environment: test-environment
[E]    | X-Pub-Reason: direct
[E]    | user-agent: Dart pub 3.1.2+3
[E] IO  : HTTP response 200 OK for GET http://localhost:$PORT/packages/foo/versions/1.0.0.tar.gz
[E]    | took: $TIME
[E]    | x-powered-by: Dart with package:shelf
[E]    | date: $TIME
[E]    | transfer-encoding: chunked
[E]    | x-goog-hash: $CHECKSUM_HEADER
[E]    | x-frame-options: SAMEORIGIN
[E]    | content-type: application/octet-stream
[E]    | x-xss-protection: 1; mode=block
[E]    | x-content-type-options: nosniff
[E] IO  : Creating $FILE from stream
[E] FINE: Computed checksum $CRC32C for foo 1.0.0 with expected CRC32C of $CRC32C.
[E] IO  : Writing $N characters to text file $SANDBOX/cache/hosted-hashes/localhost%58$PORT/foo-1.0.0.sha256.
[E] FINE: Contents:
[E]    | c35f6caa60870d3b6c5c6aebe5a5d4b56ca4733a52a80ded3445c0c5fa4b62df
[E] FINE: Created $FILE from stream
[E] IO  : Created temp directory $DIR
[E] IO  : Reading binary file $FILE.
[E] FINE: Extracting .tar.gz stream to $DIR
[E] IO  : Creating $FILE from stream
[E] FINE: Created $FILE from stream
[E] IO  : Creating $FILE from stream
[E] FINE: Created $FILE from stream
[E] FINE: Extracted .tar.gz to $DIR
[E] IO  : Renaming directory $A to $B
[E] IO  : Deleting directory $DIR
[E] IO  : Writing $N characters to text file $SANDBOX/cache/README.md.
[E] FINE: Contents:
[E]    | Pub Package Cache
[E]    | =================
[E]    | 
[E]    | This folder is used by Pub to store cached packages used in Dart / Flutter
[E]    | projects.
[E]    | 
[E]    | The contents of this folder should only be modified using the `dart pub` and
[E]    | `flutter pub` commands.
[E]    | 
[E]    | Modifying this folder manually can lead to inconsistent behavior.
[E]    | 
[E]    | For details on how manage the `PUB_CACHE`, see:
[E]    | https://dart.dev/go/pub-cache
[E] FINE: Downloading packages finished ($TIME)
[E] IO  : Writing $N characters to text file pubspec.lock.
[E] FINE: Contents:
[E]    | # Generated by pub
[E]    | # See https://dart.dev/tools/pub/glossary#lockfile
[E]    | packages:
[E]    |   foo:
[E]    |   dependency: "direct main"
[E]    |   description:
[E]    |   name: foo
[E]    |   sha256: $SHA256
[E]    |   url: "http://localhost:$PORT"
[E]    |   source: hosted
[E]    |   version: "1.0.0"
[E]    | sdks:
[E]    |   dart: ">=3.0.2 <4.0.0"
[E] IO  : Writing $N characters to text file .dart_tool/package_config.json.
[E] FINE: Contents:
[E]    | {
[E]    |   "configVersion": 2,
[E]    |   "packages": [
[E]    |   {
[E]    |   "name": "foo",
[E]    |   "rootUri": "file://$SANDBOX/cache/hosted/localhost%2558$PORT/foo-1.0.0",
[E]    |   "packageUri": "lib/",
[E]    |   "languageVersion": "3.0"
[E]    |   },
[E]    |   {
[E]    |   "name": "myapp",
[E]    |   "rootUri": "../",
[E]    |   "packageUri": "lib/",
[E]    |   "languageVersion": "3.0"
[E]    |   }
[E]    |   ],
[E]    |   "generator": "pub",
[E]    |   "generatorVersion": "3.1.2+3",
[E]    |   "pubCache": "file://$SANDBOX/cache"
[E]    | }
[E] IO  : Writing $N characters to text file .dart_tool/package_graph.json.
[E] FINE: Contents:
[E]    | {
[E]    |   "roots": [
[E]    |   "myapp"
[E]    |   ],
[E]    |   "packages": [
[E]    |   {
[E]    |   "name": "myapp",
[E]    |   "version": "0.0.0",
[E]    |   "dependencies": [
[E]    |   "foo"
[E]    |   ],
[E]    |   "devDependencies": []
[E]    |   },
[E]    |   {
[E]    |   "name": "foo",
[E]    |   "version": "1.0.0",
[E]    |   "dependencies": []
[E]    |   }
[E]    |   ],
[E]    |   "configVersion": 1
[E]    | }
[E] IO  : Writing $N characters to text file $SANDBOX/cache/active_roots/$HH/$HASH.
[E] FINE: Contents:
[E]    | {"package_config":"file://$SANDBOX/myapp/.dart_tool/package_config.json"}
[E] IO  : Writing $N characters to text file $SANDBOX/cache/log/pub_log.txt.

-------------------------------- END OF OUTPUT ---------------------------------

Information about the latest pub run.

If you believe something is not working right, you can go to
https://github.com/dart-lang/pub/issues/new to post a new issue and attach this file.

Before making this file public, make sure to remove any sensitive information!

Pub version: 3.1.2+3
Created: $TIME
FLUTTER_ROOT: <not set>
PUB_HOSTED_URL: http://localhost:$PORT
PUB_CACHE: "$SANDBOX/cache"
Command: dart pub --verbose get
Platform: $OS

---- $SANDBOX/myapp/pubspec.yaml ----
{"name":"myapp","dependencies":{"foo":"any"},"environment":{"sdk":"^3.0.2"}}
---- End pubspec.yaml ----
---- $SANDBOX/myapp/pubspec.lock ----
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
  foo:
   dependency: "direct main"
   description:
   name: foo
   sha256: $SHA256
   url: "http://localhost:$PORT"
   source: hosted
   version: "1.0.0"
sdks:
  dart: ">=3.0.2 <4.0.0"

---- End pubspec.lock ----
---- Log transcript ----
FINE: Pub 3.1.2+3
MSG : Resolving dependencies...
SLVR: fact: myapp is 0.0.0
SLVR: derived: myapp
SLVR: fact: myapp depends on foo any
SLVR:   selecting myapp
SLVR:   derived: foo any
IO  : Get versions from http://localhost:$PORT/api/packages/foo.
IO  : HTTP GET http://localhost:$PORT/api/packages/foo
   | Accept: application/vnd.pub.v2+json
   | X-Pub-OS: $OS
   | X-Pub-Command: get
   | X-Pub-Session-ID: $ID
   | X-Pub-Environment: test-environment
   | X-Pub-Reason: direct
   | user-agent: Dart pub 3.1.2+3
IO  : HTTP response 200 OK for GET http://localhost:$PORT/api/packages/foo
   | took: $TIME
   | x-powered-by: Dart with package:shelf
   | date: $TIME
   | content-length: 312
   | x-frame-options: SAMEORIGIN
   | content-type: application/vnd.pub.v2+json
   | x-xss-protection: 1; mode=block
   | x-content-type-options: nosniff
IO  : Writing $N characters to text file $SANDBOX/cache/hosted/localhost%58$PORT/.cache/foo-versions.json.
FINE: Contents:
   | {"name":"foo","uploaders":["nweiz@google.com"],"versions":[{"pubspec":{"name":"foo","version":"1.0.0","environment":{"sdk":"^3.0.0"}},"version":"1.0.0","archive_url":"http://localhost:$PORT/packages/foo/versions/1.0.0.tar.gz","archive_sha256":"$SHA256"}],"_fetchedAt": "$TIME"}
SLVR:   selecting foo 1.0.0
SLVR: Version solving took: $TIME
   | Tried 1 solutions.
FINE: Resolving dependencies finished ($TIME)
MSG : Downloading packages...
IO  : Get package from http://localhost:$PORT/packages/foo/versions/1.0.0.tar.gz.
FINE: Downloading foo 1.0.0...
IO  : Created temp directory $DIR
IO  : HTTP GET http://localhost:$PORT/packages/foo/versions/1.0.0.tar.gz
   | X-Pub-OS: $OS
   | X-Pub-Command: get
   | X-Pub-Session-ID: $ID
   | X-Pub-Environment: test-environment
   | X-Pub-Reason: direct
   | user-agent: Dart pub 3.1.2+3
IO  : HTTP response 200 OK for GET http://localhost:$PORT/packages/foo/versions/1.0.0.tar.gz
   | took: $TIME
   | x-powered-by: Dart with package:shelf
   | date: $TIME
   | transfer-encoding: chunked
   | x-goog-hash: $CHECKSUM_HEADER
   | x-frame-options: SAMEORIGIN
   | content-type: application/octet-stream
   | x-xss-protection: 1; mode=block
   | x-content-type-options: nosniff
IO  : Creating $FILE from stream
FINE: Computed checksum $CRC32C for foo 1.0.0 with expected CRC32C of $CRC32C.
IO  : Writing $N characters to text file $SANDBOX/cache/hosted-hashes/localhost%58$PORT/foo-1.0.0.sha256.
FINE: Contents:
   | c35f6caa60870d3b6c5c6aebe5a5d4b56ca4733a52a80ded3445c0c5fa4b62df
FINE: Created $FILE from stream
IO  : Created temp directory $DIR
IO  : Reading binary file $FILE.
FINE: Extracting .tar.gz stream to $DIR
IO  : Creating $FILE from stream
FINE: Created $FILE from stream
IO  : Creating $FILE from stream
FINE: Created $FILE from stream
FINE: Extracted .tar.gz to $DIR
IO  : Renaming directory $A to $B
IO  : Deleting directory $DIR
IO  : Writing $N characters to text file $SANDBOX/cache/README.md.
FINE: Contents:
   | Pub Package Cache
   | =================
   | 
   | This folder is used by Pub to store cached packages used in Dart / Flutter
   | projects.
   | 
   | The contents of this folder should only be modified using the `dart pub` and
   | `flutter pub` commands.
   | 
   | Modifying this folder manually can lead to inconsistent behavior.
   | 
   | For details on how manage the `PUB_CACHE`, see:
   | https://dart.dev/go/pub-cache
FINE: Downloading packages finished ($TIME)
MSG : + foo 1.0.0
MSG : Changed 1 dependency!
IO  : Writing $N characters to text file pubspec.lock.
FINE: Contents:
   | # Generated by pub
   | # See https://dart.dev/tools/pub/glossary#lockfile
   | packages:
   |   foo:
   |   dependency: "direct main"
   |   description:
   |   name: foo
   |   sha256: $SHA256
   |   url: "http://localhost:$PORT"
   |   source: hosted
   |   version: "1.0.0"
   | sdks:
   |   dart: ">=3.0.2 <4.0.0"
IO  : Writing $N characters to text file .dart_tool/package_config.json.
FINE: Contents:
   | {
   |   "configVersion": 2,
   |   "packages": [
   |   {
   |   "name": "foo",
   |   "rootUri": "file://$SANDBOX/cache/hosted/localhost%2558$PORT/foo-1.0.0",
   |   "packageUri": "lib/",
   |   "languageVersion": "3.0"
   |   },
   |   {
   |   "name": "myapp",
   |   "rootUri": "../",
   |   "packageUri": "lib/",
   |   "languageVersion": "3.0"
   |   }
   |   ],
   |   "generator": "pub",
   |   "generatorVersion": "3.1.2+3",
   |   "pubCache": "file://$SANDBOX/cache"
   | }
IO  : Writing $N characters to text file .dart_tool/package_graph.json.
FINE: Contents:
   | {
   |   "roots": [
   |   "myapp"
   |   ],
   |   "packages": [
   |   {
   |   "name": "myapp",
   |   "version": "0.0.0",
   |   "dependencies": [
   |   "foo"
   |   ],
   |   "devDependencies": []
   |   },
   |   {
   |   "name": "foo",
   |   "version": "1.0.0",
   |   "dependencies": []
   |   }
   |   ],
   |   "configVersion": 1
   | }
IO  : Writing $N characters to text file $SANDBOX/cache/active_roots/$HH/$HASH.
FINE: Contents:
   | {"package_config":"file://$SANDBOX/myapp/.dart_tool/package_config.json"}
---- End log transcript ----
-------------------------------- END OF OUTPUT ---------------------------------

$ tool/test-bin/pub_command_runner.dart pub fail
[E] Bad state: Pub has crashed
[E]  tool/test-bin/pub_command_runner.dart $LINE:$COL ThrowingCommand.runProtected
[E] package:pub/src/command.dart $LINE:$COL PubCommand.run.<fn>
[E] dart:async   new Future.sync
[E] package:pub/src/utils.dart $LINE:$COL captureErrors.wrappedCallback
[E] dart:async   runZonedGuarded
[E] package:pub/src/utils.dart $LINE:$COL captureErrors
[E] package:pub/src/command.dart $LINE:$COL PubCommand.run
[E] package:args/command_runner.dart $LINE:$COL CommandRunner.runCommand
[E]  tool/test-bin/pub_command_runner.dart $LINE:$COL Runner.runCommand
[E]  tool/test-bin/pub_command_runner.dart $LINE:$COL Runner.run
[E]  tool/test-bin/pub_command_runner.dart $LINE:$COL main
[E] This is an unexpected error. The full log and other details are collected in:
[E] 
[E]    $SANDBOX/cache/log/pub_log.txt
[E] 
[E] Consider creating an issue on https://github.com/dart-lang/pub/issues/new
[E] and attaching the relevant parts of that log file.

-------------------------------- END OF OUTPUT ---------------------------------

Information about the latest pub run.

If you believe something is not working right, you can go to
https://github.com/dart-lang/pub/issues/new to post a new issue and attach this file.

Before making this file public, make sure to remove any sensitive information!

Pub version: 3.1.2+3
Created: $TIME
FLUTTER_ROOT: <not set>
PUB_HOSTED_URL: http://localhost:$PORT
PUB_CACHE: "$SANDBOX/cache"
Command: dart pub fail
Platform: $OS

<No pubspec.yaml>
<No pubspec.lock>
---- Log transcript ----
FINE: Pub 3.1.2+3
ERR : Bad state: Pub has crashed
FINE: Exception type: StateError
ERR : tool/test-bin/pub_command_runner.dart $LINE:$COL ThrowingCommand.runProtected
   | package:pub/src/command.dart $LINE:$COL PubCommand.run.<fn>
   | dart:async   new Future.sync
   | package:pub/src/utils.dart $LINE:$COL captureErrors.wrappedCallback
   | dart:async   runZonedGuarded
   | package:pub/src/utils.dart $LINE:$COL captureErrors
   | package:pub/src/command.dart $LINE:$COL PubCommand.run
   | package:args/command_runner.dart $LINE:$COL CommandRunner.runCommand
   | tool/test-bin/pub_command_runner.dart $LINE:$COL Runner.runCommand
   | tool/test-bin/pub_command_runner.dart $LINE:$COL Runner.run
   | tool/test-bin/pub_command_runner.dart $LINE:$COL main
ERR : This is an unexpected error. The full log and other details are collected in:
   | 
   |   $SANDBOX/cache/log/pub_log.txt
   | 
   | Consider creating an issue on https://github.com/dart-lang/pub/issues/new
   | and attaching the relevant parts of that log file.
---- End log transcript ----
